/*
 * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <tencentcloud/sslpod/v20190605/model/ModifyDomainTagsRequest.h>
#include <tencentcloud/core/utils/rapidjson/document.h>
#include <tencentcloud/core/utils/rapidjson/writer.h>
#include <tencentcloud/core/utils/rapidjson/stringbuffer.h>

using namespace TencentCloud::Sslpod::V20190605::Model;
using namespace rapidjson;
using namespace std;

ModifyDomainTagsRequest::ModifyDomainTagsRequest() :
    m_accountDomainIdHasBeenSet(false),
    m_tagsHasBeenSet(false)
{
}

string ModifyDomainTagsRequest::ToJsonString() const
{
    Document d;
    d.SetObject();
    Document::AllocatorType& allocator = d.GetAllocator();


    if (m_accountDomainIdHasBeenSet)
    {
        Value iKey(kStringType);
        string key = "AccountDomainId";
        iKey.SetString(key.c_str(), allocator);
        d.AddMember(iKey, m_accountDomainId, allocator);
    }

    if (m_tagsHasBeenSet)
    {
        Value iKey(kStringType);
        string key = "Tags";
        iKey.SetString(key.c_str(), allocator);
        d.AddMember(iKey, Value(m_tags.c_str(), allocator).Move(), allocator);
    }


    StringBuffer buffer;
    Writer<StringBuffer> writer(buffer);
    d.Accept(writer);
    return buffer.GetString();
}


int64_t ModifyDomainTagsRequest::GetAccountDomainId() const
{
    return m_accountDomainId;
}

void ModifyDomainTagsRequest::SetAccountDomainId(const int64_t& _accountDomainId)
{
    m_accountDomainId = _accountDomainId;
    m_accountDomainIdHasBeenSet = true;
}

bool ModifyDomainTagsRequest::AccountDomainIdHasBeenSet() const
{
    return m_accountDomainIdHasBeenSet;
}

string ModifyDomainTagsRequest::GetTags() const
{
    return m_tags;
}

void ModifyDomainTagsRequest::SetTags(const string& _tags)
{
    m_tags = _tags;
    m_tagsHasBeenSet = true;
}

bool ModifyDomainTagsRequest::TagsHasBeenSet() const
{
    return m_tagsHasBeenSet;
}


